<script lang="ts" setup>
import { ref } from 'vue';

import { useVbenModal } from '@vben/common-ui';

const formRef = ref();

const [Modal, modalApi] = useVbenModal({
  centered: true,
  // 重置表单
  onBeforeClose() {
    // formRef.value.resetFields();
  },
  // 取消按钮
  onCancel() {
    modalApi.close();
  },
  // 确认提交
  onConfirm() {},
  // 打开抽屉回调
  onOpenChange(isOpen: boolean) {},
});
</script>
<template>
  <Modal class="h-[700px] w-[700px]">
    <div>123</div>
  </Modal>
</template>
